package com.sondon.mayi.adapter;

import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;

import com.sondon.mayi.entity.ScoreRecord;
import com.sondon.mayi.fruit.R;

import android.content.Context;
import android.widget.LinearLayout;
import android.widget.TextView;

/**
 * @Project : Fruit
 * @Package : com.sondon.mayi.adapter
 * @Class : ScoreRecordList_Item
 * @Author : 蔡文锋
 * @DateTime：2015年7月3日 下午9:55:46
 * @Blog：http://blog.csdn.net/caiwenfeng_for_23
 * @Description : { 积分记录 }
 *
 */
@EViewGroup(R.layout.scorerecord_list_item)
public class ScoreRecordList_Item extends LinearLayout{
	private Context context;
	
	@ViewById
	TextView exp;
	@ViewById
	TextView time;
	@ViewById
	TextView type;
	
	public ScoreRecordList_Item(Context context) {
		super(context);
		this.context=context;
	}
	
	public void bind(ScoreRecord record){
		exp.setText("获取"+record.getExp()+"积分");
		time.setText(record.getTime());
		type.setText(record.getType());
	}
	
}
